package com.information.manage.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("文件分析结果查询条件")
public class AddFileQuery {

    @ApiModelProperty(value = "当前页", required = true)
    private Integer curPage;

    @ApiModelProperty(value = "每页条数", required = true)
    private Integer pageSize;

    /**
     * @see com.information.manage.common.constants.ListenTypeEnum
     */
    @ApiModelProperty("文件处理类型 1咨询 2短讯 3短篇")
    private Integer listenFileTypeCode;

    @ApiModelProperty("处理类型 1上传 / 2自动监听文件夹 /3手动添加记录")
    private Integer type;

    @ApiModelProperty("任务状态 1检测到后未处理  2处理已完成")
    private Integer status;

    @ApiModelProperty("记录创建开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createStartTime;

    @ApiModelProperty("记录创建结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createEndTime;

}
